package org.hdax.dm.client;

import org.hdax.dm.entity.itemComment.DmItemComment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "dm-item-provider")
public interface DmItemCommentClient {

    @PostMapping(path = "/findDmItemComment")
    List<DmItemComment> findDmItemComment(@RequestBody DmItemComment dmItemComment);

    @PostMapping(path = "/commitItemComment")
    void commitItemComment(@RequestBody DmItemComment dmItemComment);
}
